<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../../common/vue2/vue.js"></script>
  </head>

  <body>
    <div id="app">
      <span :title="message">悬浮效果</span>
      <p>{{message}}</p>

      <div id="app-4">
        <ol>
          <li v-for="(todo,index) in todos">{{ todo.text }}{{index}}</li>
        </ol>
      </div>
    </div>

    <script type="text/javascript">
      var app = new Vue({
        el: "#app",
        data: {
          message: "Hello Vue!",
          todos: [
            { text: "学习 JavaScript" },
            { text: "学习 Vue" },
            { text: "整个牛项目" },
          ],
        },
      });
    </script>
  </body>
</html>
